<?php

/*
	[Discuz!] (C)2001-2009 Comsenz Inc.
	This is NOT a freeware, use is subject to license terms

	$Id: quickqueries.inc.php 19605 2009-09-07 06:18:45Z monkey $
*/

if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
        exit('Access Denied');
}

$simplequeries = array(
	array('comment' => 'Quick Enable Forum Function', 'sql' => ''),
	array('comment' => 'Enable All Forums\' Recyclebin', 'sql' => 'UPDATE {tablepre}forums SET recyclebin=\'1\''),
	array('comment' => 'Enable All Forums\' Discuz! Code', 'sql' => 'UPDATE {tablepre}forums SET allowbbcode=\'1\''),
	array('comment' => 'Enable All Forums\' [IMG] Code', 'sql' => 'UPDATE {tablepre}forums SET allowimgcode=\'1\''),
	array('comment' => 'Enable All Forums\' Smilies Code', 'sql' => 'UPDATE {tablepre}forums SET allowsmilies=\'1\''),
	array('comment' => 'Enable All Forums\' 内容干扰码', 'sql' => 'UPDATE {tablepre}forums SET jammer=\'1\''),
	array('comment' => 'Enable All Forums\' 允许匿名发贴”', 'sql' => 'UPDATE {tablepre}forums SET allowanonymous=\'1\''),

	array('comment' => 'Quick Disable Forum Function', 'sql' => ''),
	array('comment' => 'Disable All Forums\' Recyclebin', 'sql' => 'UPDATE {tablepre}forums SET recyclebin=\'0\''),
	array('comment' => 'Disable All Forums\' HTML Code', 'sql' => 'UPDATE {tablepre}forums SET allowhtml=\'0\''),
	array('comment' => 'Disable All Forums\' Discuz! Code', 'sql' => 'UPDATE {tablepre}forums SET allowbbcode=\'0\''),
	array('comment' => 'Disable All Forums\' [IMG] Code', 'sql' => 'UPDATE {tablepre}forums SET allowimgcode=\'0\''),
	array('comment' => 'Disable All Forums\' Smilies Code', 'sql' => 'UPDATE {tablepre}forums SET allowsmilies=\'0\''),
	array('comment' => 'Disable All Forums\' 内容干扰码', 'sql' => 'UPDATE {tablepre}forums SET jammer=\'0\''),
	array('comment' => 'Disable All Forums\' 允许匿名发贴', 'sql' => 'UPDATE {tablepre}forums SET allowanonymous=\'0\''),

	array('comment' => 'Related Member Operations', 'sql' => ''),
	array('comment' => 'Clean All Members\' Customize Style', 'sql' => 'UPDATE {tablepre}members SET styleid=\'0\''),
	array('comment' => 'Clean All Members\' Credit Log', 'sql' => 'TRUNCATE {tablepre}creditslog;'),
	array('comment' => 'Clean All Members\' Favorite', 'sql' => 'TRUNCATE {tablepre}favorites;'),
);

?>